package com.kidedu.service;

import java.util.List;

import com.kidedu.entity.KOrder;
import com.kidedu.entity.dto.KOrderDTO;
import com.kidedu.util.Pagination;

import net.sf.json.JSONObject;

public interface IKOrderService {

/**
 * 增加新订单
 * @param course_id
 * @param Stu_id
 * @return
 */
	boolean AddNewOrder(String course_id,String Stu_id);
	
	/**
	 *批量 删除订单
	 * @param Order_id
	 * @return
	 */
	boolean deleteOrder(List<Byte> Order_id);
	
	/**
	 * 分页查看订单
	 * @param pageNO
	 * @param PageSize
	 * @return
	 */
	JSONObject OrderListFY(int pageNO,int PageSize);
	
	/**
	 * 付款
	 * @param Order_id
	 * @return
	 */
    boolean  payOrder(Byte Order_id);
    
    /**
	 * 根据学生id查询订单
	 */
	public abstract List<KOrder> selectKOrderListByOsid(String osid);
    
	Pagination<KOrderDTO> MyOrderList(String Stu_Id,int pageNo,int PageSize);
	
	/**
	 * 查询学生已付款的订单
	 * @param Stu_Id
	 * @return 课程List
	 */
	List<String> selectOrderByStuIdReturnGid(String stuid);
	
	KOrder findOrder(Byte orderId);
	
	boolean updatefee(Byte oid,Float fee);
	boolean updateOrder(KOrder order);
}
